package com.ldd.malphite.mapper;

import com.ldd.malphite.dto.DepartmentDto;
import com.ldd.malphite.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DepartmentMapper {
    List<Department> getAll();

    void insert(List<Department> departments);

    DepartmentDto getCascade();

    DepartmentDto getCascadeBySql();
}
